package com.capinfo.accumulation.model.enums;

/**
 * 记账凭证标记
 *
 */
public enum JzpzbjEnums {
	  自动凭证(1) , 银存手工凭证(2), 转账凭证(3), 资金运作凭证(3);
	// 成员变量
	private int token;
	private JzpzbjEnums name;

	// 构造方法
	private JzpzbjEnums(int token) {
		
		this.token = token;
	}

	public int getToken() {
		
		return token;
	}

	public JzpzbjEnums getName() {
		
		name= JzpzbjEnums.getObject(this.token);
		return name;
	}

	public static JzpzbjEnums getObject(int token) {

		switch (token) {
		case 1:
			return 自动凭证;
		case 2:
			return 银存手工凭证;
		case 3:
			return 转账凭证;
		case 4:
			return 资金运作凭证;
		}
		
		return null;
	}
	
	public static void main(String[] args) {
		System.out.println(JzpzbjEnums.自动凭证.getToken());
	}
}